package love.yuanmengrobot.guoyitang.service.impl;

/*
 *   @Studio:CHJY · 源梦科技
 *   @Author:lzl
 *   @Ide:IntelliJ IDEA
 *   @Creation time:2021/8/13 22:23
 */


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import love.yuanmengrobot.guoyitang.entity.TbNatmehaMedRecords;
import love.yuanmengrobot.guoyitang.mapper.MedRecordMapper;
import love.yuanmengrobot.guoyitang.service.MedRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedRecordServiceImpl implements MedRecordService {
    @Autowired
    private MedRecordMapper medRecordMapper;


    @Override
    public List<TbNatmehaMedRecords> findMedRecordsByCardNo(String CardNo) {
        return medRecordMapper.selectList(new QueryWrapper<TbNatmehaMedRecords>().eq("idcard_no",CardNo));
    }
}
